using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Resources;
using System.Runtime.Serialization;
using System.Text;
using System.Threading.Tasks;

namespace KPIS.GERP.Models.ICM
{
	[DataContract, Table("IcmDeliveryNoteFile")]
    public class DeliveryNoteFile
    {
		[Key, DatabaseGenerated(DatabaseGeneratedOption.Identity)]
		[DataMember, Display(Name = "DnFileId", ResourceType = typeof(Resources.DeliveryNoteFileResource))]
        public int DnFileId { get; set; }

		[DataMember, Display(Name = "FileName", ResourceType = typeof(Resources.DeliveryNoteFileResource))]
        public string FileName { get; set; }

		[DataMember, Display(Name = "FilePath", ResourceType = typeof(Resources.DeliveryNoteFileResource))]
        public string FilePath { get; set; }

		[DataMember, Display(Name = "FileType", ResourceType = typeof(Resources.DeliveryNoteFileResource))]
        public string FileType { get; set; }

		[DataMember, Display(Name = "FileExtension", ResourceType = typeof(Resources.DeliveryNoteFileResource))]
        public string FileExtension { get; set; }

		[ForeignKey("Dn")]
		[DataMember, Display(Name = "DnId", ResourceType = typeof(Resources.DeliveryNoteFileResource))]
        public Nullable<int> DnId { get; set; }

		[DataMember, Display(Name = "CreatedBy", ResourceType = typeof(Resources.DeliveryNoteFileResource))]
        public Nullable<int> CreatedBy { get; set; }

		[DataMember, Display(Name = "CreatedWhen", ResourceType = typeof(Resources.DeliveryNoteFileResource))]
        public Nullable<System.DateTime> CreatedWhen { get; set; }

		[DataMember, Display(Name = "UpdatedBy", ResourceType = typeof(Resources.DeliveryNoteFileResource))]
        public Nullable<int> UpdatedBy { get; set; }

		[DataMember, Display(Name = "UpdatedWhen", ResourceType = typeof(Resources.DeliveryNoteFileResource))]
        public Nullable<System.DateTime> UpdatedWhen { get; set; }
    

		[DataMember, Display(Name = "DeliveryNote", ResourceType = typeof(Resources.DeliveryNoteFileResource))]
        public virtual DeliveryNote DeliveryNote { get; set; }

        public virtual ICM.DeliveryNote Dn { get; set; }

    }
}